<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0, width=device-width"/>
	<meta content="telephone=no" name="format-detection" /> 
	<title>api</title>
	<link rel="stylesheet" type="text/css" href="../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../css/detail.css" />
	
</head>

<body class="detail">
<script id="gt" type="text/x-dot-template">

	<div id="detailslide">
	{{if(it.yunjiage==10){}}
                  <img src="../image/ten.png" class="ico ico-label ico-label-goods">
                  {{}}}
		<div id="slideWrap">
			<img src="http://wap.jqmao.cn/statics/uploads/{{=it.picarr[0]}}" width='180px' height="180px">
		</div>
	</div>

	<div id="detail-wrap">
		<div id="detail-title" onclick="openFrame(0)">
			<span>（第{{=it.qishu}}期）{{=it.title}}</span>
		</div>
		{{if(it.remark!=1){}}
			{{if(it.shenyurenshu!=0){}}
				<div id='wp' class="w-progressBar">
						<span class="txt aggregate gray">
						总需: {{=it.zongrenshu}}人次
					</span>
					<p class="wrap">
						<span class="bar" style="width:{{=it.percent}}%;"> <i class="color"></i>
						</span>
					</p>
					<span class="txt surplus gray">
						参与: {{=it.canyurenshu}}人次
					</span>
					<span class="txt right gray">
						剩余: {{=it.shenyurenshu}}人次
					</span>
				</div>
				<p class="red" style="margin: 10px 0px">特别声明：奖励由本公司提供,与苹果官方无关。</p>
		
			{{}else{}}
			<p id='fnTimeCountDown' class="m-detail-goods-result-luckyCode"  data-end="{{=it._time}}">揭晓倒计时：<em class="mini">00</em>分
        	<em class="sec">00</em>秒
        	<em class="hm">0</em><em class="hm">0</em>
     <!--    <a class="resultBtn w-button w-button-simple w-button-simple-white" onclick="openUrl('http://m.jqmao.cn/?/mobile/mobile/calResult/{{=it.id}}')">查看计算详情</a></p> -->
			<div id="md" style="display: none" class="m-detail-goods-result">
	    	<div class="w-record">
	        <i class="ico2 ico-label2 ico-label-winner2"></i>
	        <div class="w-record-avatar" >
	        <div style="height: 45px" onclick="openWin('userCore','{{=it.q_uid}}')">
	        {{if(isImg(it.img)){}}
	         <img src="http://wap.jqmao.cn/statics/uploads/{{=it.img}}_160160.jpg" width="45px" height="45px" >
	         {{}else if(isPng(it.img)){}}
	         <img width="45px" height="45px" src="http://wap.jqmao.cn/statics/uploads/{{=it.img}}_160160.png">
	         {{}else{}}
	         <img width="45px" height="45px" src="{{=it.img}}">
			 {{}}}   
	         							                                       
			</div>
            </div>
            <div class="w-record-detail">
                <p class="f-breakword">获得者：<a>{{=it.username}}</a></p>
                {{if(it.ip!='null'){}}
                	<p>用户ip：{{=it.ip}}</p>
                {{}else{}}
                	
                	<p>用户ip：未知</p>
                {{}}}
               
                <p>本期参与：{{=it.num}}人次</p>                                     
                <p>揭晓时间：{{=it.time}}</p>
            </div>
        </div>
        <p class="m-detail-goods-result-luckyCode">幸运猫购码：<b style="color: #fff">{{=it.q_user_code}}</b>
        <a class="resultBtn w-button w-button-simple w-button-simple-white" onclick="openUrl('http://m.jqmao.cn/?/mobile/mobile/calResult/{{=it.id}}','计算详情')">查看计算详情</a></p>

                    
                    </div>
			{{}}}
			
		{{}else{}}
		
		<div class="m-detail-goods-result">
	    	<div class="w-record">
	        <i class="ico2 ico-label2 ico-label-winner2"></i>
	        <div class="w-record-avatar" >
	        <div style="height: 45px" onclick="openWin('userCore','{{=it.q_uid}}')">
	        {{if(isImg(it.img)){}}
	         <img src="http://wap.jqmao.cn/statics/uploads/{{=it.img}}_160160.jpg" width="45px" height="45px" >
	         {{}else if(isPng(it.img)){}}
	         <img width="45px" height="45px" src="http://wap.jqmao.cn/statics/uploads/{{=it.img}}_160160.png">
	         {{}else{}}
	         <img width="45px" height="45px" src="{{=it.img}}">
			 {{}}}   
	         							                                       
			</div>
            </div>
            <div class="w-record-detail">
                <p class="f-breakword">获得者：<a>{{=it.username}}</a></p>
                {{if(it.ip!='null'){}}
                	<p>用户ip：{{=it.ip}}</p>
                {{}else{}}
                	
                	<p>用户ip：未知</p>
                {{}}}
               
                <p>本期参与：{{=it.num}}人次</p>                                     
                <p>揭晓时间：{{=it.time}}</p>
            </div>
        </div>
        <p class="m-detail-goods-result-luckyCode">幸运猫购码：<b style="color: #fff">{{=it.q_user_code}}</b>
        <a class="resultBtn w-button w-button-simple w-button-simple-white" onclick="openUrl('http://m.jqmao.cn/?/mobile/mobile/calResult/{{=it.id}}','计算详情')">查看计算详情</a></p>

                    
                    </div>
		{{}}}
			
	</div>
	
	</script>
	<script id="buycode" type="text/x-dot-template">
		{{if(it.num==0){}}
		<div class="m-detail-userCodes userState">
						{{if(it.surplus==0){}}
						 <p class='gray' style="padding: 0px 10px; background: #f2f2f2"><span class="blue">您来晚了，试试下一期吧！</p>
						{{}else{}}
						 <p class='gray' style="padding: 0px 10px; background: #f2f2f2"><span class="blue">您还没有参与，快来试试吧！</p>
						{{}}}
                    
                      
        </div>
        {{}else{}}
	
		<div class="m-detail-userCodes">
                            <p class="total">您参与了：<span class="txt-red">{{=it.num}}</span>人次</p>
                            <p class="codes">猫购号码：
                            		{{ for(var i=0; i< it.list.length; i++) { }}
                            		{{if(it.list[i]){}}
                                    <b>{{=it.list[i]}}</b>
                                    {{}}}
                            		{{}}}
                            		{{if(it.num>6){}}
                            			<a class="m-detail-userCodes-viewCodesBtn blue" onclick="openHeader('buyCode','{{=it.shopId}}','{{=it.uid}}')">查看全部</a>
                            		{{}}}
                            		
                            </p>
        </div>
        {{}}}
	</script>
	
	
	<script id="list-template" type="text/x-dot-template">
		
		
			<dl onclick="openHeader('teletext','{{=it.id}}')"><i></i><strong>图文详情</strong><span class='gray'>(建议wifi下使用)</span><i class="angle-right"></i></dl>
			<dl onclick="openHeader('pastLottery','{{=it.sid}}')"><i></i><strong>往期揭晓</strong><i class="angle-right"></i></dl>
		
	
	</script>


                  
                  
			


<div id="g">

	<div id="detailslide">
		<div id="slideWrap">
			<img src="">
		</div>
		
	</div>

	<div id="detail-wrap">
		<div id="detail-title">
			<span></span>
		</div>
		<div class="w-progressBar">
			<span class="txt aggregate gray">
				总需: 人次
			</span>
			<p class="wrap">
				<span class="bar" style="width:0%;"> <i class="color"></i>
				</span>
			</p>
			<span class="txt surplus gray">
				参与: 人次
			</span>
			<span class="txt right gray">
				剩余: 人次
			</span>
		</div>
		
		<div class="m-detail-goods-result">
		<!-- <p class="m-detail-goods-result-luckyCode">幸运猫购码：<b>111</b> -->
		</div>
		
	</div>
	</div>
	
	<div id='code-content'>
		<div class="m-detail-userCodes userState">
                     <p class='gray' style="padding: 0px 10px; background: #f2f2f2"><span class="blue"></p>               
        </div>	
		
	</div>
	
            
                
	<div id="detail-li">
		
			<dl onclick=""><i></i><strong>图文详情</strong><span class='gray'>(建议wifi下使用)</span><i class="angle-right"></i></dl>
			<dl><i></i><strong>往期揭晓</strong><i class="angle-right"></i></dl>
		
	</div>



<script id="partaketemplate" type="text/x-dot-template">

	{{ for(var i=0; i< it.length; i++) { }}
		<ul onclick="openWin('userCore','{{=it[i].uid}}')">
          <li class="rBg"><a>
          {{if(isImg(it[i].uphoto)){}}
         <img src="http://wap.jqmao.cn/statics/uploads/{{=it[i].uphoto}}_160160.jpg">
         {{}else if(isPng(it[i].uphoto)){}}
         <img src="http://wap.jqmao.cn/statics/uploads/{{=it[i].uphoto}}_160160.png">
         {{}else{}}
         <img src="{{=it[i].uphoto}}">
         {{}}}
         <s></s></a></li><li class="rInfo"><a>{{=it[i].q_user}}</a><strong>({{=it[i].ip}})</strong><br><span>猫购了<b class="orange">{{=it[i].gonumber}}</b>人次</span><em class="arial">{{=it[i].time}}</em></li><i></i>
         </ul>
	{{ } }}
	 
       			
</script>
	

	
	<div id='partake-record'>
		<strong>本期参与记录</strong>
		<span class='right'></span>
	</div>
	
	<div id="divRecordList" class="recordCon z-minheight" style="display:block;">
         
          
    </div>
    <div id='more' style="text-align: center;height: 30px;line-height: 30px; display: none; color: #666">正在加载...</div>

     
<script type="text/javascript">
	apiready = function(){
	
    /*initSlide()*/
     api.setRefreshHeaderInfo({
        visible: true,
        //loadingImgae: 'wgt://image/refresh-white.png',
        bgColor: '#f2f2f2',
        textColor: '#4d4d4d',
        textDown: '下拉刷新...',
        textUp: '松开刷新...',
        showTime: true
    }, function (ret, err) {
        api.refreshHeaderLoadDone();
    });

}
</script>
</body>

<script type="text/javascript" src="../script/zepto.min.js"></script>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/doT.min.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/detailFrame.js"></script>
	<script type="text/javascript" src="http://wap.jqmao.cn/staticsmwap/templates/yungou/js/mobile/jquery190.js"></script>
	<script type="text/javascript">
    $.fn.fnTimeCountDown = function (h) {
    var s = $(this);
    var a = new Date();
  
    a.setSeconds(a.getSeconds() + h);
   
    var m = 0;
    var p = 0;
    var o = 0;
    var l = function () {
        var v = new Date();
        if (a > v) {
            var w = parseInt((a.getTime() - v.getTime()) / 1000);
            var u = w % 60;
 

            m = parseInt(w / 60);
            
            p = parseInt(u);

            if (u >= p) {
                o = parseInt((u - p) * 10)
            } else {
                o = 0
            }
            setTimeout(l, 3000)
        }else{
        	c()
        }
    };
    var g = s.find("em");
    var b = g.eq(0);
    var k = g.eq(1);
    var d = g.eq(2);
    var r = g.eq(3);
    var f = 9;
    var n = function () {
        f--;
        if (f < 0) {
            f = 9
        }
        r.html(f);
        setTimeout(n, 10)
    };
    var c = function () {
  
      r == 0;
          s.hide();                 
          $("#md").show(500);
		  $("#wp").hide();
    };
    var j = function () {
        o--;
        if (o < 1) {
            if (p < 1) {
                if (m < 1) {
                    c();
                    return;
                } else {
                    m--
                }
                p = 59
            } else {
                p--
            }
            o = 9
        }
        setTimeout(j, 100)
    };
    var e = 0, q = 0;
    var i = function () {
        d.html(o);
        if (e != p) {
            if (p < 10) {
                k.html("0" + p)
            } else {
                k.html(p)
            }
            e = p
        }
        if (q != m) {
            if (m < 10) {
                b.html("0" + m)
            } else {
                b.html("00")
            }
            q = m
        }
        setTimeout(i, 100)
    };
    l();
    j();
    n();
    i()
};
</script>

	
</html>